<!DOCTYPE html>
<html lang = "en">
<head>
    <meta charset = "UTF-8">
    <title>Title</title>
    <!--cdn引入-->
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.0/jquery.js"></script>

<!--本地引入jquery-->
<!--    <script src="lib/jquery-3.6.0.js"></script>-->
</head>
<body>
<!--
 公式：  $(selector).action()
-->
<a href="" id = "test-jquery">点我</a>
<script>
    //选择器就是css选择器
    $('#test-jquery').click(function(){
        alert('hello,jQuery!');
    });
</script>
</body>
</html>
 